/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2021-11-26 21:06:01
 * 用户模型
 */
import { Table, Column, Model, ForeignKey, AllowNull, BelongsTo } from 'sequelize-typescript'
import PageList from './page-list'

@Table
export default class page_content extends Model {
    @ForeignKey(() => PageList)
    @AllowNull
    @Column({field:"page_id"})
    pageId: number;
    @Column
    content: string;
    @BelongsTo(() => PageList)
    pageInfo: PageList;
}

